//Car.cpp
#include "stdafx.h"
#include <string>
#include <iostream>
using namespace std;
#include "Car.h"

Car::Car(string brand, bool museum_car)
{
	m_brand = brand;
	m_museum_car = museum_car;
}

void Car::PrintBrand()
{
	cout << "Auto brand is " << m_brand;
}

void Car::PrintBol()
{
	if (m_museum_car)
	{
		cout << "true" << endl;
	}
	else 
	{
		cout << "false" << endl;
	}
}

void Car::Control(string instruction)
{
	if ((!m_museum_car) && !(instruction == "beep"))
	{
		if (instruction == "forward")
			cout << "Auto moving forward" << endl;
		else if (instruction == "back")
			cout << "Auto moving back" << endl;
		else if (instruction == "left")
			cout << "Auto move to the left" << endl;
		else if (instruction == "right")
			cout << "Auto moving on the right" << endl;
		else if (instruction == "stop")
			cout << "Auto stopped" << endl;
		else
			cout << "You entered an incorrect command" <<endl;
	}
	else if (instruction == "beep")
			cout << "Auto honk. Beep-beep!!!" << endl;
	else
	{
		cout << "It's a museum car!!!" << endl;
	}
}